package com.five.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * @author keibdye
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("课程表")
public class Course {

    @ApiModelProperty("课程id")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("图片")
    private String imgUrl;

    @ApiModelProperty("金额")
    private BigDecimal money;

    @ApiModelProperty("课程类型id")
    private Long courseClassifyId;

    @ApiModelProperty("简介")
    private String synopsis;

    @ApiModelProperty("是否收费（0-免费 1-付费）")
    private Integer charge;

    @ApiModelProperty("视频时长")
    private BigDecimal  duration;

    @ApiModelProperty("状态")
    private Integer state;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("章节列表")
    private List<Chapter> chapterList;
    @ApiModelProperty("播放量")
    private Integer viewCount;


}
